package com.ybxx.asset.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;

import com.ybxx.core.model.BaseModel;

@Entity
@Table(name="tbl_asset_structures")
public class Structures extends BaseModel {
	@Id
	private String sid;
	@ManyToOne(targetEntity=Company.class,fetch=FetchType.LAZY)
	@JoinColumn(name="cid",referencedColumnName="cid") 
	private Company company;
	private String zcbh;
	private String sname;
	private String buildmonth;
	private String slen;
	private String rnum;
	private String buildarea;
	private String bookvalue;
	private String netbookvalue;
	private String mdept;
	private String content;
	public String getSid() {
		return sid;
	}
	public void setSid(String sid) {
		this.sid = sid;
	}
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	public String getZcbh() {
		return zcbh;
	}
	public void setZcbh(String zcbh) {
		this.zcbh = zcbh;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public String getBuildmonth() {
		return buildmonth;
	}
	public void setBuildmonth(String buildmonth) {
		this.buildmonth = buildmonth;
	}
	public String getSlen() {
		return slen;
	}
	public void setSlen(String slen) {
		this.slen = slen;
	}
	public String getRnum() {
		return rnum;
	}
	public void setRnum(String rnum) {
		this.rnum = rnum;
	}
	public String getBuildarea() {
		return buildarea;
	}
	public void setBuildarea(String buildarea) {
		if(StringUtils.isNotEmpty(buildarea)){
			this.buildarea = buildarea;
		}
	}
	public String getBookvalue() {
		return bookvalue;
	}
	public void setBookvalue(String bookvalue) {
		if(StringUtils.isNotEmpty(bookvalue)){
			this.bookvalue = bookvalue;
		}
	}
	public String getNetbookvalue() {
		return netbookvalue;
	}
	public void setNetbookvalue(String netbookvalue) {
		if(StringUtils.isNotEmpty(netbookvalue)){
			this.netbookvalue = netbookvalue;
		}
	}
	public String getMdept() {
		return mdept;
	}
	public void setMdept(String mdept) {
		this.mdept = mdept;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
}
